package com.chart.web.controller.system;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.chart.chart.domian.ChartPoolType;
import com.chart.common.core.domain.AjaxResult;
import com.chart.system.service.ChartPoolTypeService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @RestController
 * @RequestMapping
 * @author 罗继全
 * 2024/7/5 15:47
 */

@RestController
@RequestMapping
public class ChartPoolTypeController {

    @Autowired
    private ChartPoolTypeService chartPoolTypeService;

    /**
     * 查询案例池表
     * @return
     */
    @GetMapping("/getChartPoolType")
    @ApiOperation("获取所有表消息")
    public AjaxResult getAllTableMessages() {
        QueryWrapper<ChartPoolType> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("status", 0).orderByAsc("sort");

        List<ChartPoolType> chartPoolTypeList = chartPoolTypeService.list(queryWrapper);
        return AjaxResult.success(chartPoolTypeList);
    }





}
